package com.gengao.springbootcase;

import com.gengao.springbootcase.service.DeptService;
import org.dom4j.io.SAXReader;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication

@MapperScan("com.gengao.springbootcase.mapper")
public class SpringbootCaseApplication {


    public static void main(String[] args) {
        SpringApplication.run(SpringbootCaseApplication.class, args);
    }
//    @Bean //将当前方法的返回值对象交给IOC容器管理, 成为IOC容器bean
//    public SAXReader saxReader() {
//        return new SAXReader();
//    }//尽量不用这种方法


}
